package com.example.ecommercemanagesystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//用于转发请求
@Controller
public class CommonController {
    @RequestMapping("/index")
    public String index() {
        //登录页面
        return "index";
    }

    @RequestMapping("/addgoods")
    public String addgoods() {
        //添加商品页面
        return "addgoods";
    }

    @RequestMapping("/goodslist")
    public String goodslist() {
        //商品列表页面
        return "goodslist";
    }

    @RequestMapping("/editgoods")
    public String editgoods() {
        //修改商品页面
        return "editgoods";
    }

    @RequestMapping("/login")
    public String login() {
        //登录页面
        return "login";
    }


}
